﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _027_解释器模式
{
    class Program
    {
        static void Main(string[] args)
        {
            string context = "II V VII IV V ∫ ∬ XI"; //2 5 7 4 5 积分 二重积分 11
            string path = @"E:/vs_station/ModelsOfDesign/027-解释器模式/MapSetting.json";
            Interpreter explainer = new Interpreter(path);
            string[] strArray = context.Split(' ');
            foreach (var item in strArray)
            {
                explainer.GetExpression(item).Interpret(item);
            }

            Console.ReadKey();
        }
    }
}
